package com.smile.auth.feign;

import com.smile.auth.vo.OAuth2Vo;
import com.smile.auth.vo.UserLoginVo;
import com.smile.auth.vo.UserRegisterVo;
import com.smile.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("member")
public interface MemberFeignService {

    @PostMapping("/member/member/oauth2/login")
    public R oauthLogin(@RequestBody OAuth2Vo memberOAuth2Vo);

    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo Vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);
}
